package org.example.framework.register;

import java.util.HashMap;
import java.util.Map;

public class LocalRegister {

    private static final Map<String, Class<?>> map = new HashMap<>();

    public static void register(String interfaceName, Class<?> implclass) {
        map.put(interfaceName, implclass);
    }


    public static void register(String interfaceName, String version, Class<?> implclass) {
        map.put(interfaceName + version, implclass);
    }

    public static Class<?> get(String interfaceName) {
        return map.get(interfaceName);
    }
}
